package com.Threecharacters.inherit_.improve;

public class Student {
    //共有属性
    public String name;
    public int age;

    //共有方法
    public void setAge(int age) {
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String Info() {
        return "Name: " + name + "\nAge: " + age ;
    }

}
